package cn.hf.mychat.common.poi;

/**
 * @author 白高建
 * @create 2020/1/20 11:39
 */
public enum ExcelColumnType {
    USER_NAME("用户名", "^[\\w|\\d]{4,16}$"),
    MOBILE("手机号", "^1[3|5|8]\\d{9}$"),
    PASSWORD("密码", "^[\\w!@#$%^&*.]{6,16}$"),
    REAL_NAME("真实姓名", "^[\\u4e00-\\u9fa5 ]{2,10}$"),
    BANK_NUM("银行卡号", "^\\d{10,19}$"),
    MONEY("钱", "^([1-9]\\d*|0)$"),
    MAIL("EMAIL", "^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$"),
    OTHERS("其他", "others"),
    NONE("无", "none");

    private String value;
    private String desc;

    ExcelColumnType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public String getValue() {
        return value;
    }
}
